//
//  PPAlbumContentTableViewPrivacyCell.m
//  pickpic
//
//  Created by Jinxiao on 9/11/16.
//  Copyright © 2016 MicroDream. All rights reserved.
//

#import "PPAlbumContentTableViewPrivacyCell.h"

#import "PPAlbumContentViewDataSource.h"

@implementation PPAlbumContentTableViewPrivacyCell

- (void)setDataSource:(PPAlbumContentViewDataSource *)dataSource {
    _dataSource = dataSource;

    switch(dataSource.privacy.integerValue) {
        case PPAlbumPrivacyOnlyMe: {
            _privacyLabel.text = @"仅自己可见";
            break;
        }

        case PPAlbumPrivacyFriends: {
            _privacyLabel.text = @"所有朋友可见";
            break;
        }

        case PPAlbumPrivacySelectedVisible: {
            _privacyLabel.text = @"选中的朋友可见";
            break;
        }

        case PPAlbumPrivacySelectedInvisible: {
            _privacyLabel.text = @"选中的朋友不可见";
            break;
        }

        default: {
            _privacyLabel.text = @"所有人可见";
            break;
        }
    }
}

@end
